//
//  ViewController.m
//  HGInitManager
//
//  Created by  ZhuHong on 2017/4/29.
//  Copyright © 2017年 CoderHG. All rights reserved.
//

#import "ViewController.h"
#import "HGInitView.h"
#import "HGInitController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    
//    NSLog(@"还是说");
    
//    HGInitView* hgView = [HGInitView xibView];
    
    NSArray* views =  [[NSBundle mainBundle] loadNibNamed:@"HGInitView" owner:nil options:nil];
    HGInitView* hgView = views.firstObject;
    
    [self.view addSubview:hgView];
}



- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    HGInitController* hgVC = [[HGInitController alloc] init];
    
    [self presentViewController:hgVC animated:YES completion:NULL];
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
